package com.panfeng.xcloud.common.core.enums;

import lombok.AllArgsConstructor;

/**
 * 删除状态枚举
 *
 * @author xiaobo
 * @version 1.0
 * @since 2018-12-28
 */
@AllArgsConstructor
public enum DeleteStatusEnum {
    NORMAL(0, "正常"), DELETED(1, "已删除");

    public final Integer value;
    public final String desc;

    public static DeleteStatusEnum enumOf(Integer value) {
        for (DeleteStatusEnum e : DeleteStatusEnum.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}
